// components/spirit.js
const beh = require('../behavior.js')
Component({
  /**
   * 组件的属性列表
   */
  behaviors: [beh],
  properties: {
    item: {
      type: Object,
      default: () => {},
    },
    disable: {
      type: Boolean,
      default: false,
    },
  },
computed:{
  style() {
    return this.properties.item.style;
  },
},
lifetimes:{
  ready:function(){
    // console.log(this);

  }
},
  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    spiritClick() {
      this.triggerEvent("click", this.value);
    },
  },
  observers:{
    style() {
      return this.value.style;
    },
  }
})
